package com.hk.service;

import com.hk.dao.AccountDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class MultService {
    @Autowired
    private AccountService accountService;
    @Transactional(propagation = Propagation.REQUIRES_NEW)
   public void MultMethod(){

       accountService.TransMoney(200,"a1","a2");
       accountService.deal15();
   }

}
